package com.tenement.common;

import com.tenement.enums.RespBusiness;
import lombok.Getter;

@Getter
public class GlobalException extends RuntimeException {

    private int code;


    public GlobalException(RespBusiness respBusiness) {
        super(respBusiness.getMsg());
        this.code = respBusiness.getCode();
    }

}
